<?$files = $hd->getUploadedFiles();?>

<?if(count($files)>0) {?>
<div id="uploaded">
	<div class="upper_bar_main"><div class="upper_bar_round"></div></div>
	<div class="body_main_left">
	<div class="body_main_right">
	<div class="body_main">
	<div id="uploaded">
		<h2>File caricati</h2>
		<ol>
		<?
		$size = 0;
		foreach($files as $key => $value) {
			$src = $base_url."uploads/".basename($value);
 			$size += filesize("../uploads/".basename($value));
			$preview = ($hd->isImage($value))? " onmouseover=\"showImagePreview('".$src."')\"".
				" onmouseout=\"hideImagePreview()\" " : "";
			echo "<li><a href=\"$src\"$preview target=\"_blank\">".$src."</a></li>";
		}?>
		</ol>
	</div>
	<p class="small admin_action">
		<a href="<?echo $base_url;?>panel/file">Carica nuovo file</a> | 
		<a href="<?echo $base_url;?>panel/file/delete">Elimina file</a> | 
		<?echo floor($size/1024/1024*10)/10;?> MB occupati
	</p>
	</div></div></div>
	<div class="lower_bar_main"><div class="lower_bar_round"></div></div>
</div>
<?}?>